package com.yix.admin.modules.system.repository;

import com.yix.admin.modules.system.entity.SysJob;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Set;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/7 17:10
 */
public interface SysJobRepository extends JpaRepository<SysJob, String>, JpaSpecificationExecutor<SysJob> {

    /**
     * 根据名称查询
     * @param name 名称
     * @return /
     */
    SysJob findByName(String name);

    /**
     * 根据Id删除
     * @param ids /
     */
    void deleteAllByIdIn(Set<String> ids);
}
